package com.example.mybatisplusdemo.service.impl;

        import com.baomidou.dynamic.datasource.annotation.DS;
        import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
        import com.example.mybatisplusdemo.mapper.ProductMapper;
        import com.example.mybatisplusdemo.pojo.Product;
        import com.example.mybatisplusdemo.service.ProductService;
        import org.springframework.stereotype.Service;

@DS("slave_1")//指定所操作的数据源
@Service
public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> implements ProductService {

}
